//
//  YXCellProtocol.h
//  YXImageBrowserDemo
//
//  Created by guo peng huang on 2021/5/18.
//

#import "YXBaseInfoProtocol.h"
#import "YXOrientationReceiveProtocol.h"
#import "YXOperateBrowserProtocol.h"

@protocol YXDataProtocol;

NS_ASSUME_NONNULL_BEGIN

@protocol YXCellProtocol <YXBaseInfoProtocol, YXOrientationReceiveProtocol,YXOperateBrowserProtocol>

/// Cell 对应的 Data
@property (nonatomic, strong) id<YXDataProtocol> yx_cellData;

@optional

/**
 获取前景视图，出入场时需要用这个返回值做动效

 @return 前景视图
 */
- (__kindof UIView *)yx_foregroundView;

/**
 页码变化了
 */
- (void)yx_pageChanged;

/// 当前 Cell 的页码
@property (nonatomic, copy) NSInteger(^yx_selfPage)(void);

@end

NS_ASSUME_NONNULL_END
